<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('petcategory', 'PetCategoryController');
    $router->resource('PetProductCategory', 'PetProductCateController');
    $router->any('productCategory', 'PetProductCateController@getCate');
    $router->resource('PetProduct', 'PetProductController');
    $router->resource('PetFindPet', 'PetFindPetController');
    $router->any('provinceName', 'PetSanProvinceController@getName');
    $router->any('cityName', 'PetSanCityController@getName');
    $router->any('areaName', 'PetSanAreaController@getName');
    $router->resource('PetUser', 'PetUserController');
});
